package com.itheima.easy.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.easy.base.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ReservationDto extends BaseDto {

    @ApiModelProperty("预约人")
    private String name;
    @ApiModelProperty("预约人手机号")
    private String mobile;
    @ApiModelProperty("时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;
    @ApiModelProperty("探访人")
    private String visitor;
    @ApiModelProperty("预约类型，0：参观预约，1：探访预约")
    private Integer type;
    @ApiModelProperty("预约状态，0：待报道，1：已完成，2：取消，3：过期")
    private Integer status;
    // getters and setters
}
